﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZhonTai.Industry.Services.WorkStationRecord.Dto.Input
{
    public class WorkStationRecordUpdateInput
    {
        /// <summary>
        /// Id
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 产品编号
        /// </summary>
        /// <remarks>产品编号</remarks>
        public string? ProductCode { get; set; }

        /// <summary>
        /// 工站Id
        /// </summary>
        /// <remarks>工站Id</remarks>
        [Required(ErrorMessage = "工站ID不能为空")]
        public long StationId { get; set; }

        /// <summary>
        /// 班次ID
        /// </summary>
        /// <remarks>班次ID</remarks>
        [Required(ErrorMessage = "班次ID不能为空")]
        public long ShiftId { get; set; }

        /// <summary>
        /// 订单Id
        /// </summary>
        /// <remarks>订单Id</remarks>
        public long? OrderId { get; set; }

        /// <summary>
        /// 产品Id
        /// </summary>
        /// <remarks>订单Id</remarks>
        [Required(ErrorMessage = "产品ID不能为空")]
        public long? ProductModelId { get; set; }

        /// <summary>
        /// 加工开始时间
        /// </summary>
        /// <remarks>加工开始时间</remarks>
        public DateTime StartTime { get; set; }

        /// <summary>
        /// 加工结束时间
        /// </summary>
        /// <remarks>加工结束时间</remarks>
        public DateTime EndTime { get; set; }

        /// <summary>
        /// 循环时间
        /// </summary>
        /// <remarks>循环时间</remarks>
        public double CycleTime { get; set; }

        /// <summary>
        /// 加工结果
        /// </summary>
        /// <remarks>加工结果</remarks>
        public string? Result { get; set; }

        /// <summary>
        /// 载体
        /// </summary>
        /// <remarks>载体</remarks>
        public string? Slot { get; set; }

        /// <summary>
        /// 缺陷代号
        /// </summary>
        /// <remarks>缺陷代号</remarks>
        public string? DefectCode { get; set; }

        /// <summary>
        /// 上传标识
        /// </summary>
        /// <remarks>上传标识</remarks>
        public bool Upload { get; set; }
    }
}